<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/ajax.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<script type="text/javascript">
			var packetCount = 200;
			var nowTop = 0;
			var timeList = new Array(packetCount);
			function sendPacket(){
				if(nowTop < packetCount){
					let index = nowTop;
					nowTop++;
					timeList[index] = Date.now();
					send("POST","/@Test",true,"test",function(text){
						console.log("resp["+index+"]=" + text);
						console.log("respTime["+index+"]="+(Date.now() - timeList[index]));
					});
				}
			}
			setInterval(sendPacket,20);
		</script>
	</body>
</html>
